package com.liyuhan.shopping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liyuhan.shopping.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

// BseMapper中已经封装了基本的增删改查方法
public interface UserMapper extends BaseMapper<User> {
    // 自己编写sql语句进行select
    @Select("select * from user where username = '${username}'")
    public User selectByUsername(String username);
}
